<?php
/**
 * @Notes:【】
 * @Date: 2022-12-02 22:05
 */

namespace yjHyperfAdminPligin\Email;

use yjHyperfAdminPligin\Email\Driver\PHPMailerDriver;

class EmailManager
{


    public function getDriver(): PHPMailerDriver
    {
        $driverClass = PHPMailerDriver::class;
        $driver = make($driverClass, ['config' => $this->getConfig()]);
        return $driver;
    }

    private function getConfig()
    {
        return [];
    }

    public function send()
    {
        return $this->getDriver()->send();
    }

}